<?php

namespace App\Containers\AppSection\Pledge\Observers;

use App\Containers\AppSection\Pledge\Models\Pledge;
use App\Ship\Parents\Observers\Observer;

class PledgeObserver extends Observer
{
    public function deleted(Pledge $model)
    {
        if (!empty($model->property)) {
            $model->property->delete();
        }
    }
}
